package com.terracloud.server.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "metrics.pushgateway")
public class MetricsProperties {
    /**
     * PushGateway服务器地址
     */
    private String url = "148.70.47.141:30091";

    /**
     * 上报作业名称
     */
    private String jobName = "node_memory";

    /**
     * 实例ID
     */
    private String instanceId = "gw_001";

    /**
     * 是否启用指标上报
     */
    private boolean enabled = true;
    
    /**
     * 上报间隔（毫秒），0表示不自动上报
     */
    private long pushIntervalMs = 0;
}